//
//  UILabel+Extension.swift
//  Weibo
//
//  Created by 姜维克 on 16/5/24.
//  Copyright © 2016年 姜维克. All rights reserved.
//

import UIKit

extension UILabel{
    
    convenience init(title : String?, textColor : UIColor, textAlignment: NSTextAlignment = .Center, font: CGFloat ){
        
        self.init()
        self.text = title
        self.font = UIFont.systemFontOfSize(font)
        self.textColor = textColor
        self.textAlignment = textAlignment
        self.numberOfLines = 0
        self.sizeToFit()
 
    }

    
}
